package com.duanjw.springboot.springdoc;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * springdoc 接口文档应用
 * <p>
 *
 * @author duanjw
 */
@SpringBootApplication
public class SpringdocApplication {

    static Logger log = LoggerFactory.getLogger(SpringdocApplication.class);

    public static void main(String[] args) {
        // 引导应用程序启动spring，同时会启动Tomcat
        ConfigurableApplicationContext run = SpringApplication.run(SpringdocApplication.class, args);
        log.info("springdoc 接口文档应用，访问地址：http://localhost:8080/swagger-ui.html");
    }
}
